var t = require;
var e = module;
var o = exports;
var a,
    i =
        (this && this.__extends) ||
        ((a = function (t, e) {
            return (a =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (t, e) {
                        t.__proto__ = e;
                    }) ||
                function (t, e) {
                    for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                })(t, e);
        }),
        function (t, e) {
            a(t, e);
            function o() {
                this.constructor = t;
            }
            t.prototype = null === e ? Object.create(e) : ((o.prototype = e.prototype), new o());
        }),
    n =
        (this && this.__decorate) ||
        function (t, e, o, a) {
            var i,
                n = arguments.length,
                r = n < 3 ? e : null === a ? (a = Object.getOwnPropertyDescriptor(e, o)) : a;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, a);
            else
                for (var s = t.length - 1; s >= 0; s--)
                    (i = t[s]) && (r = (n < 3 ? i(r) : n > 3 ? i(e, o, r) : i(e, o)) || r);
            return n > 3 && r && Object.defineProperty(e, o, r), r;
        };
Object.defineProperty(o, "__esModule", {value: !0});
var r = t("UIBase"),
    s = cc._decorator,
    c = s.ccclass,
    p =
        (s.property,
        s.menu,
        (function (t) {
            i(e, t);
            function e() {
                return (null !== t && t.apply(this, arguments)) || this;
            }
            e.prototype.onShowEnd = function () {
                var t = this;
                this._privacy.active = !1;
                this._pabg.active = !1;
                this._privacyHint.active = !0;
                this.checkBtn();
                this._submitBtn.$Button.interactable = !1;
                QReport.send("1006");
                cc.assetManager.loadBundle("Res", function (e, o) {
                    o &&
                        o.load("Fab/scrollTipView", cc.Prefab, function (e, o) {
                            t && cc.isValid(t._scrollViewNode) && (cc.instantiate(o).parent = t._scrollViewNode);
                        });
                });
            };
            e.prototype._onComfirmBtnTouchEnd = function () {
                QAudio.play(QAudio.ui_button);
                this._privacy.active = !1;
                this._pabg.active = !1;
                this._privacyHint.active = !0;
            };
            e.prototype._onAgreeCheckTouchEnd = function () {
                GameCof.openPrvacy();
                this.checkBtn();
            };
            e.prototype._onPrivacyEntryTouchEnd = function () {
                this._agreeCheck.$Toggle.isChecked = !0;
                this._privacy.active = !0;
                this._pabg.active = !0;
                this._privacyHint.active = !1;
                this.checkBtn();
                this._submitBtn.$Button.interactable = !0;
            };
            e.prototype.onCloseStart = function () {
                GameBaseManager.privacyIsOver = !0;
                GameBaseManager.sendAndroidInit();
                GameBaseManager.checkViewFanChenmi();
            };
            e.prototype.checkBtn = function () {
                this._hintLabel.active = !this._agreeCheck.$Toggle.isChecked;
                this._submitBtn.$Button.interactable = this._hintLabel.active;
            };
            e.prototype._onCancelBtnTouchEnd = function () {
                QAudio.play(QAudio.ui_button);
                cc.game.end();
            };
            e.prototype._onSubmitBtnTouchEnd = function () {
                QAudio.play(QAudio.ui_button);
                QReport.send("1007");
                this.closeUI();
            };
            return n([c], e);
        })(r.default));
o.default = p;
